﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WilkeService
{
    public class Cls_Group
    {
        private Cls_Message msg;

        private Cls_ProgramCollection proColl;
        private Cls_UserCollection userColl;
        private string groupName;

        public Cls_Group(string groupName, List<Cls_Program> programmer)
        {
            msg = new Cls_Message();
            proColl = new Cls_ProgramCollection();
            userColl = new Cls_UserCollection();
        }

        public void AddProgramToGroup(string name, string path)
        {
            Cls_Program program = new Cls_Program(name, path);
            this.proColl.ListProgram.Add(program);
        }

        #region *** Properties ***
        public Cls_Message Msg
        {
            get { return msg; }
            set { msg = value; }
        }
        public Cls_ProgramCollection ProColl
        {
            get { return proColl; }
            set { proColl = value; }
        }
        public Cls_UserCollection UserColl
        {
            get { return userColl; }
            set { userColl = value; }
        }
        public string GroupName
        {
            get { return groupName; }
            set { groupName = value; }
        }
        #endregion
    }
}